package com.yyge.controller.admin.mapstruct;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yyge.common.vo.resp.PageResp;
import com.yyge.controller.admin.<---ENTITYNAME--->.req._____Req;
import com.yyge.controller.admin.<---ENTITYNAME--->.req._____AddReq;
import com.yyge.controller.admin.<---ENTITYNAME--->.req._____EditReq;
import com.yyge.controller.admin.<---ENTITYNAME--->.resp._____Resp;
import com.yyge.entity._____;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface _____Converter {
    _____Converter MAPPER = Mappers.getMapper(_____Converter.class);

     @Mapping(source="records",target="rows")
     PageResp convert(Page list);

     _____ convert(_____Req req);

     _____ convert(_____AddReq req);

     _____ convert(_____EditReq req);

     List<_____Resp> convert(List<_____> list);
}
